package com.pengtu.entity.contract;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.pengtu.entity.IdEntity;

/**
 * 检测费用清单
 * @author Administrator
 *
 */
@Entity
@Table(name="T_C_CONTRACT_INVENTOR")
public class Inventor extends IdEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String branchName; //检测分类
	private String branchCode; //检测编号
	private String checkName; //检测项目名称
	private String checkCode; //检测项目编号
	private String units; //单位
	private double unitPrice; //单价
	private double measure; //计量
	private String remark; //备注
	private String cid; // 建设工程检测协议书
//	private Document document; // 建设工程检测协议书
	
//	@OneToOne(cascade = CascadeType.PERSIST, fetch = FetchType.EAGER)
//	@JoinColumn(name = "PID")
//	@ManyToOne(targetEntity=Document.class,fetch=FetchType.LAZY)
//	@JoinColumn(name="PID")
//	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.LAZY)
//	@JoinColumn(name="CID")
//	public Document getDocument() {
//		return document;
//	}
//	public void setDocument(Document document) {
//		this.document = document;
//	}
	
	@Column(name="BRANCHNAME")
	public String getBranchName() {
		return branchName;
	}
	@Column(name="CID")
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}
	@Column(name="BRANCHCODE")
	public String getBranchCode() {
		return branchCode;
	}
	public void setBranchCode(String branchCode) {
		this.branchCode = branchCode;
	}
	@Column(name="CHECKNAME")
	public String getCheckName() {
		return checkName;
	}
	public void setCheckName(String checkName) {
		this.checkName = checkName;
	}
	@Column(name="CHECKCODE")
	public String getCheckCode() {
		return checkCode;
	}
	public void setCheckCode(String checkCode) {
		this.checkCode = checkCode;
	}
	@Column(name="UNITS")
	public String getUnits() {
		return units;
	}
	public void setUnits(String units) {
		this.units = units;
	}
	@Column(name="UNITPRICE")
	public double getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}
	@Column(name="MEASURE")
	public double getMeasure() {
		return measure;
	}
	public void setMeasure(double measure) {
		this.measure = measure;
	}
	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
